package com.zzyl.mapper;


import com.github.pagehelper.Page;
import com.zzyl.entity.ConsultationRecord;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ConsultationRecordMapper {

    /**
     * 查询退住咨询
     * @param name
     * @param phone
     * @param type
     * @return
     */
    Page<List<ConsultationRecord>> selectPage(@Param("name") String name,
                                              @Param("phone") String phone,
                                              @Param("type") Integer type);

//    @Insert("insert into consultation_record(name,phone,type,content,create_time) values(#{name},#{phone},#{type},#{content},#{createTime})")
    void insert(ConsultationRecord consultationRecord);
}
